<?php
class BinaryNode
{
    /**
     * @var mixed $data
     * @var BinaryNode $left
     * @var BinaryNode $right
     */
    public $data=null;
    public $left=null;
    public $right=null;
    /**
     * @return self
     */
    static public function create($item)
    {
        $new=new self();
        $new->data=$item;
        return $new;
    }
    public function __toString()
    {
        return strval($this->data);
    }
}
